<?php
namespace Model;

use Zend\Db\Adapter\Adapter;
use Zend\Db\Sql\Predicate\Like;
use Zend\Db\Sql\Predicate\Operator;
use Zend\Db\Sql\Select;
use Zend\InputFilter\InputFilter;

class BlockClassTable extends AbstractTable
{

    /**
     * @param $id
     * @return BlockClass
     */
    public function getBlockClass($id){
       return $this->getById($id);
    }

    /**
     * @param $name
     * @return BlockClass
     */
    public function getBlockClassByName($name)
    {
       return $this->getByColumn('name', $name)->current();
    }

    /**
     * @param $programCode
     * @return BlockClass|null
     */

    public function findByProgramCode($programCode)
    {
        return $this->getByColumn('program_code', $programCode)->current();
    }




}